<div class="top">
  <div class="container">
    <div class="pull-right">
      <a href="">Home</a>
      <a href="">官方微博</a>
      <a href="">关于我们</a>
    </div>
  </div>
</div>
<div class="topline"></div>
<div class="header container">
  <a href=""><img src="images/logo.png"></a>
  <div class="search pull-right">
    <input type="" name="" placeholder="请输入关键词">
    <button>搜索</button>
  </div>
</div>  
<nav class="navbar navbar-default">
    <div class="container">
      <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
          <ul class="nav navbar-nav">
            <li <% if(cata_id==0){%> class="active"<% }%>><a href="/">首页</a></li>
            <% for(i=0;i<catalog.length;i++) {%>
              <li <% if(catalog[i].id==cata_id){cata_name=catalog[i].name%> class="active"<% }%>><a href="/news?id=<%=catalog[i].id%>"><%=catalog[i].name%></a></li>
            <% } %>
            
          </ul>
        </div>
    </div>
</nav>